package cn.stylefeng.guns.modular.business.entity;

import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel
@TableName("sub_canal_first_classify")
@EqualsAndHashCode(callSuper = true)
@Data
public class CanalFirstClassify  extends BaseEntity {

    @ApiModelProperty("一级分类ID")
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("一级分类名称")
    @TableField("canal_first_classify_name")
    private String canalFirstClassifyName;
    @ApiModelProperty("一级分类代码")
    @TableField("canal_first_classify_code")
    private String canalFirstClassifyCode;
    @ApiModelProperty("备用")
    @TableField("canal_first_classify_type")
    private String canalFirstClassifyType;

    public CanalFirstClassify() {
    }

    public CanalFirstClassify(Long id, String canalFirstClassifyName, String canalFirstClassifyCode, String canalFirstClassifyType) {
        this.id = id;
        this.canalFirstClassifyName = canalFirstClassifyName;
        this.canalFirstClassifyCode = canalFirstClassifyCode;
        this.canalFirstClassifyType = canalFirstClassifyType;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCanalFirstClassifyName() {
        return canalFirstClassifyName;
    }

    public void setCanalFirstClassifyName(String canalFirstClassifyName) {
        this.canalFirstClassifyName = canalFirstClassifyName;
    }

    public String getCanalFirstClassifyCode() {
        return canalFirstClassifyCode;
    }

    public void setCanalFirstClassifyCode(String canalFirstClassifyCode) {
        this.canalFirstClassifyCode = canalFirstClassifyCode;
    }

    public String getCanalFirstClassifyType() {
        return canalFirstClassifyType;
    }

    public void setCanalFirstClassifyType(String canalFirstClassifyType) {
        this.canalFirstClassifyType = canalFirstClassifyType;
    }
}
